﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link rel="stylesheet" type="text/css" href="/ViewV5/CSS/bootstrap3.3.5/css/bootstrap.css">
    <link href="/ViewV5/CSS/BootOver.css" rel="stylesheet" />
    <link rel="stylesheet" href="//at.alicdn.com/t/font_1469599389_244136.css">
    <link rel="stylesheet" type="text/css" href="/ViewV5/CSS/animate.css">
    <link rel="stylesheet" type="text/css" href="/ViewV5/CSS/index.css">
    <link rel="stylesheet" type="text/css" href="/ViewV5/CSS/default.css">
    <script src="/ViewV5/JS/jquery-1.11.2.min.js"></script>
    <script src="/ViewV5/JS/avalon1.47.js"></script>
    <script src="/ViewV5/CSS/bootstrap3.3.5/js/bootstrap.js"></script>
    <script src="/ViewV5/JS/SZHLCommon.js?jsver=20160915"></script>
    <link rel="stylesheet" href="//at.alicdn.com/t/font_1468822566_9818256.css">
    <style>
         .ms-controller, .ms-important, [ms-controller], [ms-important] {
            visibility: hidden;
        }
         .szhl_Upload{
             display:none
         }

        .progress-of {
            height: 3px;
            background: #e1e6ea;
        }

            .progress-of .list {
                width: 33.333%;
                float: left;
                height: 100%;
                position: relative;
            }

                .progress-of .list span {
                    width: 15px;
                    height: 15px;
                    display: inline-block;
                    position: absolute;
                    left: 50%;
                    margin-left: -5px;
                    top: -5px;
                    background: #e1e6ea;
                    border-radius: 50%;
                }

                .progress-of .list i {
                    position: relative;
                    top: -30px;
                    display: inline-block;
                }

                .progress-of .list.active {
                    background: #2798df;
                }

                    .progress-of .list.active span {
                        background: #2798df;
                    }

        .progress-item {
            margin-bottom: 40px;
        }

        .progress-item-select {
            margin-left: 25px;
        }

            .progress-item-select select {
                width: 200px;
                height: 25px;
                margin-top: 5px;
            }

        .progress-btn {
            position: fixed;
            bottom: 0;
            right: 0;
            padding: 20px;
            border-top: 1px solid #E7E7E7;
            width: 100%;
            background: #F9F9F9;
        }
    </style>
    <script type="text/javascript">
        var tempmodel = avalon.define({
            $id: "APP_XTGL_INIT",
            CompanyData: {},
            up: function (type) {
                if (type==0) {
                    tempmodel.CompanyData.FZRDH = tempmodel.CompanyData.Mobile;
                    tempmodel.CompanyData.FZR = tempmodel.CompanyData.ContactUser;
                } else {
                    tempmodel.CompanyData.FLXRDH = tempmodel.CompanyData.Mobile;
                    tempmodel.CompanyData.FinanceLXR = tempmodel.CompanyData.ContactUser;
                }
             
            },
            SaveData: function () {
                var modelValue = JSON.stringify(tempmodel.CompanyData.$model);
                $.post("/API/VIEWAPI.ashx", { Action: "XTGL_EDITCOMPANY", P1: modelValue },
                function (result) {
                    top.model.CompanyData = tempmodel.CompanyData;
                    top.ComFunJS.winsuccess("保存成功");
                    setTimeout("top.layer.closeAll()",1500)

                });
            },qx: function () {
              top.layer.closeAll();
            }
        })

        avalon.ready(function () {
            tempmodel.CompanyData = top.model.CompanyData;
            ComFunJS.initForm();
        })
    </script>
</head>
<body>
    <div class="container-fluid" ms-controller="APP_XTGL_INIT">
        <div class="padding20" style="padding-bottom:90px;">
            <div class="tab">
                <div class="form-horizontal" style="margin:20px  auto auto 50px;">
                    <div class="form-group">
                        <label for="companyName" class=" col-xs-2 control-label text-right">企业名称</label>
                        <div class="col-xs-6">
                            <input type="text" class="form-control" id="companyName" ms-duplex="CompanyData.QYName" placeholder="请输入企业名称" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="ContactUser" class="col-xs-2 control-label text-right">企业联系人</label>
                        <div class="col-xs-6">
                            <input type="text" class="form-control" id="ContactUser" ms-duplex="CompanyData.ContactUser" placeholder="请输入企业联系人" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="Position" class="col-xs-2 control-label text-right">职务</label>
                        <div class="col-xs-6">
                            <input type="text" class="form-control" id="Position" ms-duplex="CompanyData.Position" placeholder="请输入职务" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="Mobile" class="col-xs-2 control-label text-right">联系电话</label>
                        <div class="col-xs-6">
                            <input type="text" class="form-control " id="Mobile" ms-duplex="CompanyData.Mobile" placeholder="请输入移动电话" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="ContactUser" class="col-xs-2 control-label text-right">系统负责人</label>
                        <div class="col-xs-6">
                            <input type="text" class="form-control" id="FZR" ms-duplex="CompanyData.FZR" placeholder="请输入负责人联系人" />
                        </div>
                        <a href="###" ms-click="up(0)" style="color:cornflowerblue">同上</a>
                    </div>
                    <div class="form-group">
                        <label for="ContactUser" class="col-xs-2 control-label text-right">负责人电话</label>
                        <div class="col-xs-6">
                            <input type="text" class="form-control" id="FZR" ms-duplex="CompanyData.FZRDH" placeholder="请输入负责人电话" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="ContactUser" class="col-xs-2 control-label text-right">财务联系人</label>
                        <div class="col-xs-6">
                            <input type="text" class="form-control" id="FinanceLXR" ms-duplex="CompanyData.FinanceLXR" placeholder="请输入财务联系人" />
                        </div>
                        <a href="###" ms-click="up(1)" style="color:cornflowerblue">同上</a>
                    </div>
                    <div class="form-group">
                        <label for="ContactUser" class="col-xs-2 control-label text-right">财务联系电话</label>
                        <div class="col-xs-6">
                            <input type="text" class="form-control" id="FinanceLXR" ms-duplex="CompanyData.FLXRDH" placeholder="请输入财务联系电话" />
                        </div>
                    </div>
         
                    <div class="form-group">
                        <label for="TelPhone" class="col-xs-2 control-label text-right">公司电话</label>
                        <div class="col-xs-6">
                            <input type="text" class="form-control" id="TelPhone" ms-duplex="CompanyData.TelPhone" placeholder="请输入公司电话" />
                        </div>
                    </div>
                
                    <div class="form-group">
                        <label for="Email" class="col-xs-2 control-label text-right">电子邮件</label>
                        <div class="col-xs-6">
                            <input type="text" class="form-control" id="Email" ms-duplex="CompanyData.Email" placeholder="请输入电子邮件" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="Address" class="col-xs-2 control-label text-right">地址</label>
                        <div class="col-xs-6">
                            <input type="text" class="form-control" ms-duplex="CompanyData.Address" id="Address" placeholder="请输入通讯地址" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="WebSite" class="col-xs-2 control-label text-right">企业Logo</label>
                        <div class="col-xs-6 text-left">
                            <input type="text" class="szhl_Upload" ms-duplex="CompanyData.LogoID"  />
                        </div>
                    </div>
                </div>
            </div>
            <div class="tab" style="display:none;">

            </div>
        </div>
        <div class="progress-btn tr">
            <button type="button" class="btn btn-default" id="qxbtn" ms-click="qx()">取消</button>
            <button type="button" class="btn btn-info" ms-click="SaveData()" id="ksdr">保存企业信息</button>
        </div>

    </div>
</body>
</html>
